Available access modes for opening assets with {@link AAssetManager_open}
Close an opened AAssetDir, freeing any related resources.
Iterate over the files in an asset directory. A NULL string is returned when all the file names have been returned.
Reset the iteration state of AAssetDir_getNextFileName() to the beginning.
Open an asset.
Open the named directory within the asset hierarchy. The directory can then be inspected with the AAssetDir functions. To open the top-level directory, pass in "" as the dirName.
Close the asset, freeing all associated resources.
Get a pointer to a buffer holding the entire contents of the assset.
Report the total size of the asset data.
Report the total size of the asset data. Reports the size using a 64-bit number insted of 32-bit as AAsset_getLength.
Report the total amount of asset data that can be read from the current position.
Report the total amount of asset data that can be read from the current position.
Returns whether this asset's internal buffer is allocated in ordinary RAM (i.e. not mmapped).
Open a new file descriptor that can be used to read the asset data. If the start or length cannot be represented by a 32-bit number, it will be truncated. If the file is large, use AAsset_openFileDescriptor64 instead.
Open a new file descriptor that can be used to read the asset data.
Attempt to read 'count' bytes of data from the current offset.
Seek to the specified offset within the asset data. 'whence' uses the same constants as lseek()/fseek().
Seek to the specified offset within the asset data. 'whence' uses the same constants as lseek()/fseek().
{@link AAssetDir} provides access to a chunk of the asset hierarchy as if it were a single directory. The contents are populated by the {@link AAssetManager}.
{@link AAssetManager} provides access to an application's raw assets by creating {@link AAsset} objects.
@file asset_manager.h